<%@ page import="com.survey.utils.PageBean" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="keywords" content=""/>
    <meta http-equiv="description" content=""/>
    <link rel="stylesheet" href="Css/Style.css" type="text/css"/>
    <link rel="stylesheet" href="Css/Admin.css" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/bootstrap.min.css">
    <script language="JavaScript" src="Js/Func.js"></script>
    <script language="javascript">window.onload = tableFix;
    </script>
    <title><%--<%=cfg.getCSiteName() %>--%>---问卷列表</title>
</head>
<body>
<div id="head">
    <img src="images/head.jpg;" style="width:770px;height:140px">
</div>
<%@ include file="banner.jsp" %>
<div id="box">
    <div class="title">问卷列表</div>
    <div>
        <table class="table" id=SurveyAdmin>
            <tr>
                <td align=left>问卷名称</td>
                <td>问卷发起者</td>
                <td>问卷创建日期</td>
                <td>问卷结束日期</td>
            </tr>

            <c:forEach items="${pageBean.list}" var="s">
                <tr>
                    <td>${s.id}</td>
                    <td><a href="${pageContext.request.contextPath}/SurveyShow?sid=${s.id}">${s.name}</a></td>
                    <td>${s.date1}
                    </td>
                    <td>${s.date2}</td>
                </tr>
            </c:forEach>
        </table>
        <div class="pull-right">
            <!-- 用于javascript提交，搜索内容 -->
            <script type="text/javascript">
                function page(pageCode) {
                    window.location.href = "${pageContext.request.contextPath}/Survey_list?pageCode="
                        + pageCode;
                }
            </script>
            <jsp:include page="/page.jsp"></jsp:include>
        </div>
    </div>
</div><!--main box-->
<%--
<div id="bottom">
<%=cfg.getCSiteName() %><br/>
<%=cfg.getCopyright() %> 
</div><!--bottom end-->--%>
</body>
</html>